home *** CD-ROM | disk | FTP | other *** search
- ++++++++++++++++++++++++++++++++++++++++++++++
- + DOS PLATFORM +
- + +
- + SOURCE CODE EXAMPLES TO CHANGE SOFTWARE +
- + +
- ++++++++++++++++++++++++++++++++++++++++++++++
-
-
- +-- DISCLAIMER PLEASE READ: ------------------------------------+
- + +
- + The following source is provided "as is" without warranty +
- + of any kind, either expressed or implied, including but not +
- + limited to the implied warranties or merchantibility and +
- + fitness for a particular purpose. The entire risk as to the +
- + quality and performance of the program is with you. +
- + +
- + You have a royalty-free right to use, modify, and reproduce +
- + the Sample Source Code exmaples in any way you find useful, +
- + provided that you agree that StanBrite Software has no +
- + warranty, obligations or liability for any Sample Source +
- + Code examples. +
- + +
- +---------------------------------------------------------------+
-
- /*
- *********************************************************
- * *
- * Registration Manager DEMO *
- * *
- * Copyright StanBrite SOFTWARE. *
- * All rights reserved. *
- * 1994 - 1997 *
- * *
- *********************************************************
- */
- /*
- ******************************************************************
- This is a demo program which checks the Keywords
-
- Command line:
- DEMODOS.EXE <Keyword> [ALLOW]
-
- ******************************************************************
- */
- #include "string.h" /* For strcpy (), strcmp () */
- #include "stdio.h" /* For printf () */
-
- main (int argc, char *argv[])
- {
- char Keyword [40];
- char Allow [10];
-
- /* Get the KEYWORD */
- strcpy (Keyword, argv [1]);
- if (argc > 1)
- strcpy (Allow, argv [2]);
-
- printf ("\n\n\n");
- if (strcmp (Keyword, "DemoUser") == 0)
- {
- if (strcmp (Allow, "ALLOW") == 0)
- printf ("THIS PROGRAM IS RUNNING SUCCESSFULLY IN DEMO MODE (WITHOUT REGISTRATION).");
- else
- printf ("THIS PROGRAM HAS BEEN REGISTERED AND IS RUNNING SUCCESSFULLY IN REAL MODE.");
- }
- else
- printf ("This program needs validation. You must run teh REMINDER.EXE.");
- printf ("\n\n\n");
-
- return;
- }
-
- -------------------------------------------
- End of file.